package com.ruoyi.jihuo.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.jihuo.domain.Categories;
import com.ruoyi.jihuo.domain.TrafficCount;
import com.ruoyi.jihuo.enums.UseTemplateCategoryEnums;
import com.ruoyi.jihuo.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.ruoyi.common.core.domain.AjaxResult.success;

/**
 * @Author：LXY
 * @DATE：2025-08-09 16:17
 * @Description：
 */
@RestController
@RequestMapping("/jihuo/categories")
public class CategoriesController {
    @Autowired
    private CategoriesService categoriesService;

    @GetMapping(value = "/getTeFiCa")
    public AjaxResult getTeFiCa()
    {
        return success(categoriesService.selectCategoriesList(UseTemplateCategoryEnums.TE_FI_CA.getCode()));
    }
}
